package cn.wonderland.util;

import cn.wonderland.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.alibaba.fastjson.JSONObject;

public class DowngradeUtil {
    public static String degradationMethod(Long orderId, BlockException e){
        e.printStackTrace();
        User user = new User(-1L, "流量控制--降级触发！", null, null);
        return JSONObject.toJSONString(user);
    }
}